package xyz.xtt.pay.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
 * <p>
 * 用户交易行为限制表
 * </p>
 *
 * @author dale
 * @since 2025-02-18
 */
@Data
@Builder
@Accessors(chain = true)
@TableName("tbl_pay_limit")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TblPayLimit对象", description = "用户交易行为限制表")
public class TblPayLimit implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId("pay_limit_id")
    private Long payLimitId;

    @ApiModelProperty("通通用户id")
    private Long appUserId;

    @ApiModelProperty("总购买金额限制")
    private BigDecimal buyTotalLimit;

    @ApiModelProperty("总购买金额")
    private BigDecimal buyTotal;

    @ApiModelProperty("总售卖金额限制")
    private BigDecimal sellTotalLimit;

    @ApiModelProperty("售卖总金额")
    private BigDecimal sellTotal;

    @ApiModelProperty("购买每日限额")
    private BigDecimal buyDailyLimit;

    @ApiModelProperty("当日购买总金额")
    private BigDecimal buyDaily;

    @ApiModelProperty("销售日限额")
    private BigDecimal sellDaliyLimit;

    @ApiModelProperty("当日销售总金额")
    private BigDecimal sellDaily;

    @ApiModelProperty("当日0点0分0秒时间戳")
    private Long dailyDate;

    @ApiModelProperty("数据版本号")
    private Integer dataVersion;

    @ApiModelProperty("操作人用户id  SYSTEM：代表系统自动操作")
    private String operatorUserId;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("逻辑删除标识  0-未删除 1-已删除")
    private Integer isDel;
}
